<?php

namespace Ticket\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 *  @ORM\Entity
 */
class TicketUpdate {
    
    /**
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     * @ORM\Column(type="integer")
     */
    protected $id;
    
    /**
     * @ORM\ManyToOne(targetEntity="Ticket", inversedBy="updates")
     * @ORM\JoinColumn(name="ticket", referencedColumnName="id", nullable=false)
     */
    protected $ticket;
    
    /**
     * @ORM\ManyToOne(targetEntity="\User\Entity\User")
     * @ORM\JoinColumn(name="author", referencedColumnName="id", nullable=false)
     **/
    protected $author;
    
    
    /**
     * @ORM\Column(type="datetime")
     */
    protected $time;
    
    /**
     * @ORM\Column(type="string")
     */
    protected $text;
    
    public function getId() {
        return $this->id;
    }

    public function getTicket() {
        return $this->ticket;
    }

    public function getAuthor() {
        return $this->author;
    }

    public function getTime() {
        return $this->time;
    }

    public function getText() {
        return $this->text;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function setTicket($ticket) {
        $this->ticket = $ticket;
    }

    public function setAuthor($author) {
        $this->author = $author;
    }

    public function setTime($time) {
        $this->time = $time;
    }

    public function setText($text) {
        $this->text = $text;
    }
}